package cn.dgut.xp.pojo;


import javax.annotation.Resource;

/**
 * @author xiaopeng_lin
 * @date 2021/1/13  20:08
 */
public class People {

    private Cat cat;

    private Dog dog;

    public Cat getCat() {
        return cat;
    }
    @Resource
    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public Dog getDog() {
        return dog;
    }
    @Resource
    public void setDog(Dog dog) {
        this.dog = dog;
    }

    @Override
    public String toString() {
        return "People{" +
                "cat=" + cat +
                ", dog=" + dog +
                '}';
    }
}
